var citylocation = null;
//获取城市列表接口设置中心点
citylocation = new qq.maps.CityService({
    complete : function(result){
    	var city = result.detail.name;
    	searthWeather(city);
    }
});
//调用searchLocalCity();方法    根据用户IP查询城市信息。
citylocation.searchLocalCity();

function searthWeather(city){
	var url = 'http://wthrcdn.etouch.cn/weather_mini?city='+city;
	$.ajax({
		url: url,
		dataType: "jsonp",
		type:"get",
		data:{location:city},
		success:function(data){
			$('#mufeng').html("<p>" + '当前: ' + city+' '+data.data.wendu+ '℃ '+  "</p>");
	
		} 
	});
}